﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Card
{
    private string cardName;
    private Colors cardColor;
    private Weight cardWeight;
    private CharacterType belongTo;
    /// <summary>
    /// 卡牌的名字
    /// </summary>
    public string CardName
    {
        get
        {
            return cardName;
        }

    }

    /// <summary>
    /// 卡牌的花色
    /// </summary>
    public Colors CardColor
    {
        get
        {
            return cardColor;
        }
    }

    /// <summary>
    /// 卡牌的数值
    /// </summary>
    public Weight CardWeight
    {
        get
        {
            return cardWeight;
        }
    }

    /// <summary>
    /// 卡牌属于哪一个角色
    /// </summary>
    public CharacterType BelongTo
    {
        get
        {
            return belongTo;
        }
        set { belongTo = value; }
    }
    /// <summary>
    /// 构造函数初始化这一张卡牌
    /// </summary>
    /// <param name="name">卡牌的名字</param>
    /// <param name="color">卡牌的花色</param>
    /// <param name="weight">卡牌的数值权重</param>
    /// <param name="belongTo">卡牌属于哪一个角色</param>
    public Card(string name,Colors color,Weight weight,CharacterType belongTo)
    {
        this.cardName = name;
        this.cardColor = color;
        this.cardWeight = weight;
        this.belongTo = belongTo;
    }
}
